package org.example.db.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel("商品")
public class Goods {

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    Long id;
    String goodsSn;
    String name;
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    Long categoryId;
    @ApiModelProperty("商品宣传图片列表，采用JSON数组格式")
    String gallery;
    String keywords;
    @ApiModelProperty("商品简介")
    String brief;
    Byte isOnSale;
    Integer sortOrder;
    String pictureUrl;
    @ApiModelProperty("商品分享海报")
    String shareUrl;
    String unit;
    String counterPrice;
    String retailPrice;
    String detail;
    String addTime;
    String updateTime;
}
